package com.example.springboot.service;

import com.example.springboot.entity.jobs;
import com.example.springboot.mapper.JobsCreateMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobsCreateService {

    @Autowired
    private JobsCreateMapper jobsCreateMapper;

    public List<jobs> AllJobsById(int id) {
        return  jobsCreateMapper.AllJobsById(id);
    }

    public void addJobs(jobs jobs) {
        jobsCreateMapper.addJobs(jobs);
    }
}
